codespell_lib/_codespell.py: read additional args from file with with…#3841
Conversation
|
Hi! I'm I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:
|
f2094d9 to
0eff305
Compare
bda9898 to
1a53dd9
Compare
|
I'm not sure why the codecov/patch test is failing - the new test definitely ends up using the new |
bfeabba to
12b4220
Compare
12b4220 to
43e2bf1
Compare
for more information, see https://pre-commit.ci
|
I've added an explicit call to [This call duplicates what we are already doing by running a child process, which presumably is not being seen by code coverage?] Please review. |
|
Looks reasonable, thanks @julian-smith-artifex-com ! |
This allows arguments to be read from a file with
@PATH.It uses https://docs.python.org/3/library/argparse.html#fromfile-prefix-chars.
I'd like this change specifically to avoid having to specify a large number of paths on the command line - when codespell reports errors, ptest dumps the entire command line which makes it difficult to find the actual codespell output.
There is currently one test failure, of
codecov/patch. I don't understand what's going on here - the new functionconvert_arg_line_to_args()is definitely called by new testtest_args_from_file().